<?php 
$val = $this->val;
?>

<form action="/index/addproject" method="post" enctype="multipart/form-data">
    
    <div class="hdr">Add New Project</div>
        <div class="cleft">
<p>
            <div>
                <em class="required">*</em>
                <label for="name">Name</label>
                <input type="text" value="<?php  if (isset($val['name'])) echo $val['name'];?>" name="name" 
                        id="name" maxlength="255" tabindex="1" />
            </div>
            <?php if(isset($this->aError['name'])) { foreach($this->aError['name'] as $ErrName => $ErrDescr) { ?>
                <div class="error_msg"><?php echo $ErrDescr; ?></div>
            <?php } } ?>
</p>

<p>
            <div>
                <em class="required">*</em>
                <label for="project_num">Project num</label>
                <input type="text" value="<?php  if (isset($val['project_num'])) echo $val['project_num'];?>" name="project_num" 
                        id="name" maxlength="255" tabindex="2" />
            </div>
            <?php if(isset($this->aError['project_num'])) { foreach($this->aError['project_num'] as $ErrName => $ErrDescr) { ?>
                <div class="error_msg"><?php echo $ErrDescr; ?></div>
            <?php } } ?>
</p>
<?php /*
<p>
        <div>
                <em class="required">*</em>
                <label for="base">Base project</label>
            <input type="checkbox" name="base" id="base" />
        </div>
</p>

<p>
        <div>
                <em class="required">*</em>
                <label for="time_off">Time Off project</label>
                <input type="checkbox" name="time_off" id="time_off" />
        </div>
</p>

<p>
        <div>
                <em class="required">*</em>
                <label for="base">Start date</label>
                <input type="text" name="start_date" id="start_date" value="" />
        </div>        
</p>
     
<p>
        <div>
                <em class="required">*</em>
                <label for="base">End date</label>    
                <input type="text" name="end_date" id="end_date"  value="" />
        </div>        
</p>
*/ ?>

<p>
            <input type="submit" value="Save" /></input>
</p>
        </div>  
</form>